<?php
/**
 * The sidebar containing the main widget area
 *
 * If no active widgets are in the sidebar, hide it completely.
 *
 * @package WordPress
 * @subpackage Lebanon_Times
 * @since Lebanon Times 1.0
 */
include dirname(__FILE__)."/categoryMapping.php";
?>

<div class="sidebarWidget">
    <div class="tabActive">
        آخر الأخبار
    </div>
    <div class="content">
        <ul>
        <?php
            $recent_posts = wp_get_recent_posts();
            foreach( $recent_posts as $recent ){
                echo '<li><div class="arrow-left"></div><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' .   $recent["post_title"].'</a> </li> ';
            }
        ?>
        </ul>
    </div>
</div>